package book;

public class BookList {
    public Book[] booklist = new Book[10];
    private int bookNum;

    public BookList() {
        booklist[0] = new Book("三国演义","罗贯中",20,"小说");
        booklist[1] = new Book("红楼梦","曹雪芹",20,"小说");
        booklist[2] = new Book("西游记","吴承恩",20,"小说");
        booklist[3] = new Book("水浒传","施耐庵",20,"小说");
        bookNum = 4;
    }

    public Book[] getBooklist() {
        return booklist;
    }

    public void setBooklist(Book book) {
        booklist[bookNum] = book;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }
}
